<!DOCTYPE html>
	<div class="ui-widget-content" style="width:100%;height:550px;">
	<div class="ui-widget myPanel" style="width:300px;margin:100px auto;">
		<div class="ui-widget-header"><label>修改密码</label></div>
		<div class="ui-widget-content">
			<form action="changePassword" method="post" onsubmit="return xy();">
				<p><label style="width:5em;display: inline-block;">旧密码：</label><input type="password" name="oldPwd" id="oldPwd"></p>
				<p><label style="width:5em;display: inline-block;">新密码：</label><input type="password" name="newPwd" id="newPwd"></p>
				<p><label style="width:5em;display: inline-block;">密码确认：</label><input type="password" id="newPwd2"></p>
				<hr/>
				<p style="text-align: right;"><button type="submit" class="button">提交</button><button type="reset" style="margin-left: 1em;margin-right: 2em">重置</button></p>
			</form>
		</div>
	</div>
<script type="text/javascript">
	function xy(){
		var oldPwd=$('#oldPwd').val();
		var newPwd=$('#newPwd').val();
		var newPwd2=$('#newPwd2').val();
		if(oldPwd&&newPwd&&newPwd2){
			if(newPwd==newPwd2){
				return true;
			}
		}
		alert("两次输入的密码不一致");
		$('#newPwd').val('');
		$('#newPwd2').val('');
		$('#newPwd').focus();
		return false;
	}
	
	$('button').button();
</script>
